<table>
    <thead>
        <tr>
            <g:sortableColumn property="id" title="${message(code: 'moc.tf.id.label', default: 'Id')}" />
            <g:sortableColumn property="tf001" title="${message(code: 'moc.tf.tf001.label', default: 'Tf001')}" />
            <g:sortableColumn property="tf002" title="${message(code: 'moc.tf.tf002.label', default: 'Tf002')}" />
            <th><g:message code="default.createdBy.label" default="Created By" /></th>
            <g:sortableColumn property="dateCreated" title="${message(code: 'default.dateCreated.label', default: 'Date Created')}" />
            <th><g:message code="default.lastModifiedBy.label" default="Last Modified By" /></th>
            <g:sortableColumn property="lastUpdated" title="${message(code: 'default.lastUpdated.label', default: 'Last Updated')}" />
            <th><g:message code="default.owner.label" default="Owner" /></th>
        </tr>
    </thead>
    <tbody>
    <g:each in="${tfInstanceList}" status="i" var="tfInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${tfInstance.id}">${fieldValue(bean: tfInstance, field: "id")}</g:link></td>
            <td>${tfInstance.tf001}</td>
            <td><g:formatBoolean boolean="${tfInstance.tf002}" /></td>
            <td>${fieldValue(bean: tfInstance, field: "createdBy.username")}</td>
            <td><g:formatDate date="${tfInstance.dateCreated}" /></td>
            <td>${fieldValue(bean: tfInstance, field: "lastModifiedBy.username")}</td>
            <td><g:formatDate date="${tfInstance.lastUpdated}" /></td>
            <td>${fieldValue(bean: tfInstance, field: "owner.username")}</td>
        </tr>
    </g:each>
    </tbody>
</table>